<template>
  <a-layout>
    <a-layout-sider>
        <LeftMenu/>
      </a-layout-sider>
    <a-layout>
      <a-layout-header style="background: #fff; padding: 0">
        <TopHeader/>
      </a-layout-header>
      <a-layout-content >
        <router-view></router-view>
      </a-layout-content>
    </a-layout>
  </a-layout>
</template>
<script lang="ts">
import TopHeader from './TopHeader.vue';
import LeftMenu from './LeftMenu.vue';
import { defineComponent } from 'vue';
import { reactive } from "@vue/reactivity";

export default defineComponent({
  name: 'index',
  components: {
    TopHeader,
    LeftMenu
  },
  setup() {
    const state = reactive({
      headerOffsetTop: 0,
      contentOffsetTop: 30
    })
    return {
        state
    }
  }
});
</script>


<style lang="less" scoped>
#components-layout-demo-custom-trigger .trigger {
  font-size: 18px;
  line-height: 64px;
  padding: 0 24px;
  cursor: pointer;
  transition: color 0.3s;
}

#components-layout-demo-custom-trigger .trigger:hover {
  color: #1890ff;
}

#components-layout-demo-custom-trigger .logo {
  height: 32px;
  background: rgba(255, 255, 255, 0.3);
  margin: 16px;
}

.ant-layout.ant-layout-has-sider {
  height: 100vh;
}
.ant-layout-content {
  background-color: #fff;
}
.ant-layout-header {
  height: 64px;
}
</style>